const url = require("url")


var str = "http://127.0.0.1:3200/uploads/8b4f8f9fd4788e09296a52af6d09f540.svg"

let a = url.parse(str).pathname
console.log(a);